package com.knight.validate;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

public class MyConstraintValidator implements ConstraintValidator<MyValidate, String> {
    @Override
    public void initialize(MyValidate constraintAnnotation) {
        System.out.println("MyConstraintValidator init method");
    }

    @Override
    public boolean isValid(String value, ConstraintValidatorContext context) {

        return false;
    }
}
